/*
 * Project Name: cms_manager
 * File Name: ClassesDao.java
 * Copyright: ZKTeco Corporation 2015
 * Description: TODO 请在此处添加对本文件的描述
 * Creator: Administrator
 * Create Date: 2015年3月16日 上午10:17:55
 */
package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.ClassesEntity;

/**
 *
 * @since 2015年3月16日 上午10:17:55
 */
@Repository
public interface ClassesDao extends IBaseDAO<ClassesEntity, Long>
{
	public List<ClassesEntity> getClassesByType(ClassesEntity classesEntity) throws DataAccessException;
	public List<ClassesEntity> getChildClasses(@Param("fatherId") long fatherId,@Param("isShowOnIndex") int isShowOnIndex,
			@Param("isHeader") int isHeader,@Param("isShowRollOnIndexPage") int isShowRollOnIndexPage) throws DataAccessException;
	
	public List<ClassesEntity> getSearchListByAliasName(@Param("offset") long offset,
			@Param("rows") long rows,@Param("keyWords") String keyWords) throws DataAccessException;
	public int getSearchListByAliasNameCount(@Param("keyWords") String keyWords) throws DataAccessException;
	
	public ClassesEntity getByAliasName(String aliasName) throws DataAccessException;
}
